home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Full
/
Paragon Drive Backup 9
/
DB90_SE_x64.msi
/
Data1.cab
/
_A6E1CEA8F1C05C3393B01D863D53D6DF
/
dos.img
/
AUTOEXEC.BAT
next >
Wrap
DOS Batch File
|
2008-05-23
|
3KB
|
123 lines
@echo off
echo Welcome to PTS-DOS (PARAGON Recovery Media)
rem LANG - language choosed
rem CPI - code page number
rem CDDRIVE - boot CD BIOS drive number
rem MNPATH - path to menu
rem MNLET - menu drive letter
rem LETTER - boot CD drive letter
rem RAM - ram drive letter
rem SFMODE - safe mode flag
a:
cd \
mouse.com
rem gets LANG and CDDRIVE. if dosmenu is absent, then LANG set as EN allways.
dos_lang
set MNPATH=\dos
set RAM=Y:
set MNLET=%RAM%
set CPI=850
if not "%LANG%"=="RU" goto nru
set CPI=866
a:\vgascr
:nru
if "%LANG%"=="JP" set CPI=932
if "%LANG%"=="JA" set CPI=932
if "%LANG%"=="PL" set CPI=852
if "%LANG%"=="CN" set CPI=936
if "%LANG%"=="ZN" set CPI=936
if "%LANG%"=="TR" set CPI=857
cd \ntfs4dos
if "%CDDRIVE%"=="" goto cdnfound
set LETTER=Z:
call nd.bat 27648 -nodd -cp:%CPI% -cd:%CDDRIVE%:%LETTER% -rd:23552:%RAM%
:mkram0
if "%LANG%"=="" goto nmnt
goto mkram
:nmnt
set SFMODE=1
set LANG=EN
:mkram
mkdir %RAM%\dos
mkdir %RAM%\dos\nls
copy a:\ntfs4dos\nls\*.* %RAM%\dos\nls\*.* >nul
rem fill RAM disk
set TZ=GMT
if exist %LETTER%\dos\common.zip a:\unzip32 -qq -o %LETTER%\dos\common.zip -d %RAM%\dos >nul
if not exist %LETTER%\dos\utils.zip goto skip_utils
if exist %RAM%\dos\start.exe del %RAM%\dos\start.exe >nul
if exist %LETTER%\dos\utils.zip a:\unzip32 -qq -o %LETTER%\dos\utils.zip -d %RAM%\dos >nul
:skip_utils
if exist %LETTER%\dos\local.zip a:\unzip32 -qq -o %LETTER%\dos\local.zip -d %RAM%\dos >nul
if "%SFMODE%"=="" goto cont
if exist %LETTER%\dos\safe.zip a:\unzip32 -qq -o %LETTER%\dos\safe.zip -d %RAM%\dos >nul
goto cont
rem no CD modes
:cdnfound
call nd.bat 27648 -mountall -nodd -cp:%CPI% -rd:23552:%RAM%
rem check for flash disk
if not exist c:\dos\flash.bin goto chkpsr
call nd.bat -f D: X:
set LETTER=C:
goto mkram0
:chkpsr
if not exist a:\psr.bat goto d2
call a:\psr.bat
call nd.bat -f C: X:
:d2
if not exist a:\disk2.bat goto d2nfound
copy a:\disk2.bat %RAM%\*.* >nul
%RAM%
cd \
disk2.bat
goto out
:d2nfound
if "%LANG%"=="" set LANG=EN
:cont
set TZ=
if exist %MNLET%%MNPATH%\menu.bat goto nmnu
if exist %MNLET%%MNPATH%\start.exe goto nmnu
set MNPATH=\MENU
set MNLET=A:
:nmnu
SET PATH=a:\;%RAM%\dos;%RAM%\dos\dn;%RAM%\dos\links
SET LINKS=%RAM%\dos\links
%MNLET%
cd %MNPATH%
if exist %MNLET%%MNPATH%\menu.bat goto start_menu
if exist %MNLET%%MNPATH%\start.exe start.exe
if exist a:\reboot.com a:\reboot.com
goto out
:start_menu
menu.bat
:out